package com.jbm.onehome.client.remote;

import com.jbm.core.client.MainCallback;
import com.jbm.core.common.MainServer;
import com.jbm.core.iface.IAcross;
import com.jbm.onehome.iface.ContactEntity;

/**
 * Created by root on 17-5-23.
 */
public class RContactEntity extends ContactEntity
{
	public RContactEntity(){}
	public RContactEntity(IAcross ia)
	{
		super(ia);
	}

	public IAcross AddContact()
	{
		MainCallback callback = MainServer.getG_server().getM_maincallback();

		if ( callback != null )
		{
			callback.AddContact((ContactEntity)m_input);
		}
		return new IAcross(200,"OK");
	}

	public IAcross DropContact()
	{
		MainCallback callback = MainServer.getG_server().getM_maincallback();

		if ( callback != null )
		{
			callback.DropContact((ContactEntity)m_input);
		}
		return new IAcross(200,"OK");
	}
}
